package exception;

/**
 * 自定义异常:通常使用来表达业务错误
 * 1:类名一定要见明知义
 * 2:自定义异常继承Exception类()直接继承或者间接继承
 * 3:提供所继承的类的构造器 alt+insert Constructor 全选回车
 * Illegal 非法的
 */
public class IllegalAgeException extends Exception{
    public IllegalAgeException() {
    }

    public IllegalAgeException(String message) {
        super(message);
    }

    public IllegalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeException(Throwable cause) {
        super(cause);
    }

    public IllegalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
